// 左侧菜单
import type { pageRoutesType } from '@model/types/PageRoutes'
import { ModuleEnum } from './ModuleEnum'
const foundationNginx = ModuleEnum.FoundationNginx
const yuncangNginx = ModuleEnum.YuncangNginx
const customerOperationNginx = ModuleEnum.CustomerOperation
const serviceDeskNginx = ModuleEnum.ServiceDesk
// 智能报表
export const pageManagementReport: pageRoutesType = {
  id: 'M_SMART_REPORT',
  type: 'foundationManagementReport',
  url: `${foundationNginx}/managementReport`,
  title: '智能报表'
}

// 数据大屏
export const pageDataScreen: pageRoutesType = {
  id: 'M_NEW_DATA_SCREEN',
  type: 'foundationDataScreen',
  url: `${foundationNginx}/dataScreen`,
  title: '数据大屏'
}

// 报表权限配置
export const pageSettingReportAuth: pageRoutesType = {
  id: 'frame_tab_PERMISSION_CONFIGURATION',
  type: 'settingPerformanceV2Report',
  url: '/setting/performance/v2/report',
  title: '报表权限配置'
}

// 服务事件(事件列表)
export const pageEventList: pageRoutesType = {
  id: 'M_SERVICE_EVENT',
  type: 'eventList',
  url: '/event',
  title: '服务事件'
}

// 客服中心-自助门户
export const pagePortalData: pageRoutesType = {
  id: 'M_DOOR_DATA_DASHBOARD',
  type: 'portalData',
  url: '/portal/getDoorDataPage',
  title: '自助门户'
}


// 客户管理(客户列表)
export const pageCustomerList: pageRoutesType = {
  id: 'M_CUSTOMER_MANAGEMENT',
  type: 'customerList',
  url: '/customer',
  title: '客户管理'
}

// 客户联系人（列表）
export const pageLinkManList: pageRoutesType = {
  id: 'M_CUSTOMER_CONTACT',
  type: 'linkManList',
  url: '/linkman/jump/list',
  title: '客户联系人'
}

// 产品列表
export const pageProductList: pageRoutesType = {
  id: 'M_PRODUCT_LIST',
  type: 'productList',
  url: '/customer/product',
  title: '产品列表'
}

// 产品类型（列表）
export const pageProductCatalogList: pageRoutesType = {
  id: 'M_PRODUCT_TYPE',
  type: 'productCatalogList',
  url: '/productV2/catalog/list',
  title: '产品类型列表'
}

// 产品模板（列表）
export const pageProductTemplateList: pageRoutesType = {
  id: 'M_PRODUCT_TEMPLATE',
  type: 'productTemplateList',
  url: '/product',
  title: '产品模板'
}

// 产品注册（列表）
export const pageProductRegisterList: pageRoutesType = {
  id: 'M_PRODUCT_REGISTRATION',
  type: 'productTemplateList',
  url: '/product/register',
  title: '产品注册'
}

// 超级二维码（列表）
export const pageProductQrcodeList: pageRoutesType = {
  id: 'M_SUPER_QR_CODE',
  type: 'productQrcodeList',
  url: '/product/qrcode',
  title: '超级二维码'
}

// 工单中心-工单列表
export const pageTaskList: pageRoutesType = {
  id: 'M_TASK_LIST',
  type: 'taskList',
  url: '/task',
  title: '工单列表'
}

// 指派工单（列表）
export const pageTaskAllotList: pageRoutesType = {
  id: 'M_ASSIGN_TASK',
  type: 'taskAllotList',
  url: '/task/allot',
  title: '指派工单'
}

// 工单池（列表）
export const pageTaskPoolList: pageRoutesType = {
  id: 'M_TASK_POOL',
  type: 'taskPoolList',
  url: '/task/taskPool',
  title: '工单池'
}

// 审核结算（列表）
export const pageTaskAuditList: pageRoutesType = {
  id: 'M_AUDIT_SETTLEMENT',
  type: 'taskAudit',
  url: '/balance/alreadySettlement',
  title: '审核结算'
}

// 工单中心-回访工单
export const pageTaskReviewList: pageRoutesType = {
  id: 'M_RETURN_TASK',
  type: 'taskReview',
  url: '/task/review',
  title: '工单回访列表'
}

// 关闭工单（列表）
export const pageTaskCloseList: pageRoutesType = {
  id: 'M_CLOSE_TASK',
  type: 'taskCloseList',
  url: '/task/close',
  title: '关闭工单'
}

// 归档工单（列表）
export const pageTaskArchiveList: pageRoutesType = {
  id: 'M_ARCHIVE_TASK',
  type: 'taskArchiveList',
  url: '/archive',
  title: '归档工单'
}

// 计划任务（列表）
export const pageTaskPlanTaskList: pageRoutesType = {
  id: 'M_SCHEDULE_TASK',
  type: 'taskPlanTaskList',
  url: '/task/planTask/list',
  title: '计划任务'
}

// 知识库（列表）
export const pageWikiList: pageRoutesType = {
  id: 'M_WIKI',
  type: 'wikiList',
  url: '/wiki',
  title: '知识库列表'
}

// 服务商管理（列表）
export const pageServiceProviderList: pageRoutesType = {
  id: 'M_SERVICE_PROVIDER_MANAGEMENT',
  type: 'serviceProviderList',
  url: '/security/tag/serviceProvider',
  title: '服务商管理'
}

// 在线支付管理（列表）
export const pagePaymentBillOnlineList: pageRoutesType = {
  id: 'M_ONLINE_PAYMENT_MANAGEMENT',
  type: 'paymentBillOnlineList',
  url: '/payment/paymentBillOnline',
  title: '在线支付管理'
}

// 绩效报告（列表）
export const pagePerformanceList: pageRoutesType = {
  id: 'M_PERFORMANCE_REPORT',
  type: 'performanceList',
  url: '/performance/list',
  title: '绩效报告'
}

// 组织架构
export const pageSecurityDepartment: pageRoutesType = {
  id: 'M_ORGANIZATIONAL_STRUCTURE',
  type: 'securityDepartment',
  url: '/security/department',
  title: '组织架构'
}

// 角色管理
export const pageSecurityRoleView: pageRoutesType = {
  id: 'M_ROLE_MANAGEMENT',
  type: 'securityRoleView',
  url: '/security/role/view',
  haveParams: 'from=role',
  title: '角色管理'
}

// 呼叫中心
export const pageCallCenterStage: pageRoutesType = {
  id: 'M_CALL_CENTER',
  type: 'callCenterStage',
  url: '/setting/callcenter/stage',
  title: '呼叫中心'
}

// 呼叫工作台
export const pageSecurityCallcenterWorkbench: pageRoutesType = {
  id: 'M_CALL_WORKBENCH',
  type: 'securityCallcenterWorkbench',
  url: '/setting/callcenter/workbench',
  title: '呼叫工作台'
}

// 呼叫中心坐席监控
export const pageCallCenterServiceStatusList: pageRoutesType = {
  id: 'M_CALL_MONITOR',
  type: 'callCenterServiceStatusList',
  url: `${serviceDeskNginx}/callCenterServiceStatusList`,
  title: '电话客服监控'
}

// 会话管理
export const pageImConversationList: pageRoutesType = {
  id: 'M_SESSION_MANAGEMENT',
  type: 'imConversationList',
  url: '/im/imConversationList',
  title: '会话管理'
}

// 排队会话
export const pageConversationLine: pageRoutesType = {
  id: 'M_QUEUED_SESSION',
  type: 'conversationLine',
  url: '/im/conversationLine',
  title: '排队会话'
}

// 在线客服监控
export const pageCustomerServiceStatusList: pageRoutesType = {
  id: 'M_CUSTOMER_SERVICE_MONITORING',
  type: 'customerServiceStatusList',
  url: `${serviceDeskNginx}/customerServiceStatusList`,
  title: '在线客服监控'
}

// 在线客服
export const pageImImchat: pageRoutesType = {
  id: 'M_CHILD_ONLINE_CUSTOMER_SERVICE',
  type: 'imImchat',
  url: '/im/imChat',
  title: '在线客服'
}

// 流程调研
export const pageCustomerExperienceQuestionnaireData: pageRoutesType = {
  id: 'M_PROCESS_DATA',
  type: 'customerExperienceQuestionnaireData',
  url: `${customerOperationNginx}/customerExperience/questionnaireData`,
  title: '流程调研'
}

// 调研模板设置
export const pageCustomerExperienceQuestionnaireSchemeList: pageRoutesType = {
  id: 'M_TEMPLATE_CONFIGURATION',
  type: 'customerExperienceQuestionnaireSchemeList',
  url: `${customerOperationNginx}/customerExperience/questionnaireScheme/list`,
  title: '调研模板设置'
}

// 备件品类
export const pagePartCategoryList: pageRoutesType = {
  id: 'M_PART_TYPE',
  type: 'partCategoryList',
  url: '/partV2/category/list',
  title: '备件品类'
}

// 出入库记录
export const pagePartRepertoryRecordList: pageRoutesType = {
  id: 'M_PART_IN_OUT_STOCK_RECORD',
  type: 'partRepertoryRecordList',
  url: '/partV2/repertory/record',
  title: '出入库记录'
}

// 个人备件库
export const pagePartRepertoryPersonList: pageRoutesType = {
  id: 'M_PERSONAL_PART_STOCK',
  type: 'partRepertoryPersonList',
  url: '/partV2/repertory/person',
  title: '个人备件库'
}

// 办理出入库
export const pageSparepartApply: pageRoutesType = {
  id: 'M_HANDLE_IN_OUT_STOCK',
  type: 'sparepartApply',
  url: '/partV2/repertory/apply',
  title: '办理出入库',
  urlParams: true,
}


// 备件库存
export const pageSparepartStock: pageRoutesType = {
  id: 'M_PART_STOCK',
  type: 'sparepartStock',
  url: '/partV2/repertory/stock',
  title: '备件库存'
}

// 库存查询
export const pageInventoryList: pageRoutesType = {
  id: 'M_STOCK_QUERY',
  type: 'inventoryList',
  url: `${yuncangNginx}/inventory/list`,
  title: '库存查询'
}

// 入库
export const pageIntostockList: pageRoutesType = {
  id: 'M_IN_STOCK',
  type: 'intostockList',
  url: `${yuncangNginx}/intostock/list`,
  title: '入库'
}

// 出库
export const pageLeavestockList: pageRoutesType = {
  id: 'M_OUT_STOCK',
  type: 'leavestockList',
  url: `${yuncangNginx}/leavestock/list`,
  title: '出库'
}

// 调拨
export const pageAllocatestockList: pageRoutesType = {
  id: 'M_ALLOCATION',
  type: 'allocatestockList',
  url: `${yuncangNginx}/allocatestock/list`,
  title: '调拨'
}

// 缺货管理
export const pageStockoutList: pageRoutesType = {
  id: 'M_SHORTAGE_MANAGEMENT',
  type: 'stockoutList',
  url: `${yuncangNginx}/stockout/list`,
  title: '缺货管理'
}

// 缺货信息
export const pageShortageInfo: pageRoutesType = {
  id: 'M_CLOUD_WAREHOUSE_STOCKOUT_LIST',
  type: 'shortageInfo',
  title: '缺货信息',
  url: `${yuncangNginx}/stockout/list`,
}
// 出入库记录
export const pageStockRecord: pageRoutesType = {
  id: 'M_IN_OUT_STOCK_RECORD',
  type: 'stockRecord',
  url: `${yuncangNginx}/stock/record`,
  title: '出入库记录'
}

// 转仓
export const pageTransferstockList: pageRoutesType = {
  id: 'M_TRANSFER_STOCK',
  type: 'transferstockList',
  url: `${yuncangNginx}/transferstock/list`,
  title: '转仓'
}

// 盘点
export const pageLiquidationList: pageRoutesType = {
  id: 'M_STOCKTAKING',
  type: 'liquidationList',
  url: `${yuncangNginx}/liquidation/list`,
  title: '盘点'
}

// 仓库列表
export const pageWarehouseList: pageRoutesType = {
  id: 'M_STOCK_MANAGEMENT',
  type: 'warehouseList',
  url: `${yuncangNginx}/warehouse/list`,
  title: '仓库列表'
}

// 个人库
export const pageLibraryList: pageRoutesType = {
  id: 'M_PERSONAL_STOCK',
  type: 'libraryList',
  url: `${yuncangNginx}/library/list`,
  title: '个人库'
}

// 物料返还管理
export const pageCorereturnList: pageRoutesType = {
  id: 'M_MATERIAL_RETURN_MANAGEMENT',
  type: 'corereturnList',
  url: `${yuncangNginx}/corereturn/list`,
  title: '物料返还管理'
}

// S-BOM
export const pageSBomList: pageRoutesType = {
  id: 'M_S_BOM',
  type: 'sBomList',
  url: `${yuncangNginx}/sBom/list`,
  title: 'S-BOM'
}

// 物料信息
export const pageItemsList: pageRoutesType = {
  id: 'M_MATERIAL_INFO',
  type: 'itemsList',
  url: `${yuncangNginx}/items/list`,
  title: '物料信息'
}

// 物料替换
export const pageItemReplaceList: pageRoutesType = {
  id: 'M_MATERIAL_REPLACE',
  type: 'itemReplaceList',
  url: `${yuncangNginx}/itemReplace/list`,
  title: '物料替换'
}

// 服务项目
export const pageServicePriceList: pageRoutesType = {
  id: 'M_SERVICE_LIST',
  type: 'servicePriceList',
  url: '/service/price',
  title: '服务项目'
}

// 服务记录
export const pageServicePriceRecordList: pageRoutesType = {
  id: 'M_SERVICE_RECORD',
  type: 'servicePriceRecordList',
  url: '/service/price/record',
  title: '服务记录'
}

// 客户结算
export const pageBalanceAlreadySettlement: pageRoutesType = {
  id: 'M_CUSTOMER_SETTLEMENT',
  type: 'balanceAlreadySettlement',
  url: '/balance/alreadySettlement',
  title: '组织架构'
}


// 物料商城
export const pageMaterialmallList: pageRoutesType = {
  id: 'M_MATERIAL_MALL',
  type: 'materialmallList',
  url: `${yuncangNginx}/materialmall/list`,
  title: '物料商城'
}

// 订购单管理
export const pagePurchaaseOrderManageList: pageRoutesType = {
  id: 'M_PURCHASE_ORDER_MANAGEMENT',
  type: 'purchaaseOrderManageList',
  url: `${yuncangNginx}/purchaaseOrderManage/list`,
  title: '订购单管理'
}

// 物料售价管理
export const pageMaterialList: pageRoutesType = {
  id: 'M_MATERIAL_SALE_MANAGEMENT',
  type: 'materialList',
  url: `${yuncangNginx}/material/list`,
  title: '物料售价管理'
}

// 商品管理
export const pageLinkcGoodsList: pageRoutesType = {
  id: 'M_GOODS_MANAGEMENT',
  type: 'linkcGoodsList',
  url: '/linkc/goods/list',
  title: '商品管理'
}

// 订单管理
export const pageLinkcOrderList: pageRoutesType = {
  id: 'M_ORDER_MANAGEMENT',
  type: 'linkcOrderList',
  url: '/linkc/order/list',
  title: '订单管理'
}

// 新版本订单管理
export const pageLinkcOrderListV2: pageRoutesType = {
  id: 'M_ORDER_MANAGEMENT_NEW',
  type: 'linkcOrderListV2',
  url: '/linkc/order/listV2',
  title: '订单管理'
}

// 服务订单列表
export const pageEventOrderList: pageRoutesType = {
  id: 'M_SERVICE_ORDER',
  type: 'eventOrderList',
  url: '/event/order',
  title: '服务订单列表'
}

// 活动调研
export const pagePcoperationCustomerExperienceActivityResearchList: pageRoutesType = {
  id: 'M_SATISFACTION_ACTIVE',
  type: 'pcoperationCustomerExperienceActivityResearchList',
  url: `${customerOperationNginx}/customerExperience/activityResearch/list`,
  title: '活动调研'
}

// 报表智搜
export const pageStatsBeiJiData: pageRoutesType = {
  id: 'M_REPORT_INTELLIGENT_SEARCH',
  type: 'statsBeiJiData',
  url: '/shb/home/stats/beiJiData',
  title: '报表智搜'
}

// 服务商权限管理
export const pageRoleServiceView: pageRoutesType = {
  id: 'M_SERVICE_PROVIDER_ROLE_NEW',
  type: 'roleServiceView',
  url: '/security/roleService/view',
  title: '服务商权限管理'
}
